package admin

import database "hft/Database"

type Params struct {
	database.Base
	Name      string       `json:"name"`
	ParamName string       `json:"paramName" gorm:"uniqueIndex"`
	ParamType string       `json:"paramType"`
	ShopRoute []*ShopRoute `json:"shopRoute" gorm:"many2many:_shop_route_params;foreignKey:ID;references:ID;constraint:OnUpdate:NO ACTION,OnDelete:NO ACTION"`
}

func (Params) TableName() string {
	return database.TableNameFormat("params")
}
